gdkwindow-wayland: Add a forgotten ref
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 19 Jun 2014 18:55:04 +0000 (14:55 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Thu, 19 Jun 2014 18:56:17 +0000 (14:56 -0400)
gdk/wayland/gdkwindow-wayland.c

index 3e77b1c1d0fa0f7292d7a0026000b3b7e26d6ecb..b8d341efc27fae674aef752c9bb5f9a69857cd06 100644 (file)
@@ -831,7 +831,7 @@ xdg_surface_close (void *data,
   GdkEvent *event;
 
   event = gdk_event_new (GDK_DELETE);
-  event->any.window = window;
+  event->any.window = g_object_ref (window);
   event->any.send_event = TRUE;
 
   display = gdk_window_get_display (window);